package com.mh.controller;

import com.mh.dto.R;
import com.mh.pojo.StoreInfos;
import com.mh.service.StoreInfoService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * Date:2024/10/22
 * author:zmh
 * description: 店铺信息相关接口
 **/

@RestController
@RequestMapping("storeInfo")
@CrossOrigin
@RequiredArgsConstructor
@Slf4j
public class StoreInfoController {

    private final StoreInfoService storeInfoService;

    @GetMapping("/getStoreInfoById/{storeId}")
    public R<StoreInfos> getStoreInfoById(@PathVariable String storeId) {
        return storeInfoService.getStoreInfoById(storeId);
    }
}
